<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 600px;
            height: 200px;
            /*线性渐变*/
            background: -webkit-linear-gradient(top left,red,blue);
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>
